Platform Explorer / Nuxeo Platform 2021

Component org.nuxeo.ecm.platform.comment.workflow.operation.contrib

Resolution Order

302
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.comment.workflow.operation.contrib">

  <extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent"
    point="operations">
    <operation class="org.nuxeo.ecm.platform.comment.workflow.ModerateCommentOperation" />
  </extension>

  <extension point="chains"
    target="org.nuxeo.ecm.core.operation.OperationServiceComponent">

    <chain id="acceptComment">
      <operation id="Context.FetchDocument" />
      <operation id="Comment.Moderate">
        <param type="boolean" name="accept">true</param>
      </operation>
    </chain>

    <chain id="rejectComment">
      <operation id="Context.FetchDocument" />
      <operation id="Comment.Moderate">
        <param type="boolean" name="accept">false</param>
      </operation>
    </chain>

  </extension>

</component>